$(document).ready(function(){
    $('#zhongjiang').click(function(){
        easyDialog.open({
          container : "chaxun",
          autocount : 20,
          countid : 'backcount',
          fixed : true
        });
        $('#lotterycode').focus();
    });
    
    $('#lotterycode').bind('input',function(){
        if($(this).val().length==12){
        	var batchid = $(this).val();
        	var mac = pyObj.get_if_mac();
        	$(this).val('');
        	window.location.href = "/zhongjiang/"+batchid+"|"+mac;
        }
        
    });
    
    $('#index_double').click(function(){
    	window.location.href="/double";
    });
    $('#index_ssc').click(function(){
    	window.location.href="/shishicai";
    });
    $('#index_qlc').click(function(){
    	window.location.href="/qilecai";
    });
    $('#index_3d').click(function(){
    	window.location.href="/fucai3D";
    });
    $('#index_15').click(function(){
    	window.location.href="/fifteen_five";
    });
    $('#index_six_one').click(function(){
    	window.location.href="/six_one";
    });
    $('#index_zoushi').click(function(){
    	window.location.href="/all_qushitu";
    });
    $('#index_guanli').click(function(){
    	window.location.href="/login";
    });
    
});
